package com.dhcc.cdc.busi.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.cdc.busi.entity.CdcDiagnosisEntity;
import com.dhcc.core.framework.base.service.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * 诊断表数据服务层接口
 * 
 * @ClassName: ICdcDiagnosisService
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:08
 */
public interface ICdcDiagnosisService  extends IBaseService<CdcDiagnosisEntity> {
	
    List<CdcDiagnosisEntity> page(Page<CdcDiagnosisEntity> page,Map<String, Object> map);
    List<CdcDiagnosisEntity> list(Map<String, Object> map);

    /**
     * 根据就诊id、诊断来源、诊断类型查询诊断表
     * @param aEpisodeID 就诊id
     * @param diagSource 诊断来源
     * @param diagType   诊断类型
     * @return
     */
    List<CdcDiagnosisEntity> selectIcd10ByEpisode(Long aEpisodeID, String diagSource, String diagType);
    /**
     * 
     * @Title: handleXmlData   
     * @Description: TODO(这里用一句话描述这个方法的作用)   
     * @author: mazhaoyan 
     * @param: @param dataStr
     * @param: @return      
     * @return: String      
     * @throws   
     *
     */
    String handleXmlData(String dataStr);

    List<CdcDiagnosisEntity> selectDiagInfo(Long episodeId, Long diagSource, Long diagType);

    List<CdcDiagnosisEntity> selectDiagInfoByParam(Long episodeId, Long diagSource, Long diagType, String filterTxt, String keywordAndTxt, String keywordOrTxt);
}
